package javase.homework;

import java.util.ArrayList;
import java.util.Scanner;

public class StudentExamTest {
	public static void main(String[] args) {
		
		Paper p=new Paper();
		ArrayList<String> options1=new ArrayList<String>();
		options1.add("1945");
		options1.add("1949");
		options1.add("1937");
		options1.add("1921");
		
		Question q=new Question("1", "中国什么时候解放？", options1,"A",5);
		Question q1=new Question("2", "中国什么时候解放？", options1,"A",5);
		p.addQuestion(q1);
		p.addQuestion(q);
		AnswerSheet answerSheet = new AnswerSheet();
		
		Scanner sc=new Scanner(System.in);
		System.out.println("input student name:");
		String name=sc.nextLine();
		//s.getPaper()
		Student s=new Student(1,name,p,answerSheet);
		s.startExam();
		System.out.println(answerSheet.getAnswersSheet().toString());
		System.out.println(s.getName()+"你的分数"+s.getScore());
	
	}
}
